package com.qs.education.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.qs.education.bean.api.PageBean;
import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationStudentResponse;
import com.qs.education.bean.entity.EducationStudent;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.IStudentService;

/**
 * 
 * @class StudentServiceImpl
 * @author Jason
 * @description
 * @date Nov 8, 2018 2:36:04 PM
 */
@Service
public class StudentServiceImpl extends BaseService implements IStudentService{

	@Override
	public PageBean getEducationStudent(EducationStudent student, Integer currentPage, Integer pageSize) {
		
		return apiCaller.getStudent(student,currentPage,pageSize);
	}

	@Override
	public EducationStudentResponse deleteStudentById(Integer studentId) {
		
		return apiCaller.deleteStudentById(studentId);
	}

	@Override
	public EducationStudentResponse findStudentById(Integer studentId) {
		
		return apiCaller.findStudentById(studentId);
	}

	@Override
	public EducationStudentResponse updateStudent(EducationStudent educationStudent) {
		
		return apiCaller.updateStudent(educationStudent);
	}

	@Override
	public EducationStudentResponse addStudent(EducationStudent educationStudent) {
		
		return apiCaller.addStudent(educationStudent);
	}

	@Override
	public ResponseListBean<EducationStudent> findStudentByCondition(EducationStudent student) {
		
		return apiCaller.findStduentByCondition(student);
	}

}
